package com.ruoyi.web.sms;

import com.alibaba.fastjson2.JSONObject;
import com.aliyuncs.dysmsapi.model.v20170525.SendBatchSmsResponse;
import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface ISmsSender {

    boolean query(String phone, String bizId, LocalDate sendDate, Long pageSize, Long currentPage) throws Exception;

    SendSmsResponse sendSms(String phone, String templateCode, Map param) throws Exception;

    SendBatchSmsResponse sendBatchSms(List<String> phones, String templateCode, List<JSONObject> templateParams) throws Exception;

}
